import tui from '../../../common/httpRequest'
Page({
  data: {
    scrollTop: 0
  },
  detail(e) {
    tui.toast("功能开发中~")
  },
  sticky(e) {
    let type = e.currentTarget.dataset.type;
    let url = type == 1 ? '../stickyBasic/stickyBasic' : '../stickyAsync/stickyAsync';
    tui.href(url)
  },
  //页面滚动执行方式
  onPageScroll(e) {
    this.setData({
      scrollTop: e.scrollTop
    })
  }
})